package com.treasure.mall.biz.repository.community;

import com.treasure.mall.biz.base.JpaSearchableRepository;
import com.treasure.mall.biz.entity.community.CommunityCommentLikePO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunityCommentLikeRepository extends JpaSearchableRepository<CommunityCommentLikePO, Long> {
    CommunityCommentLikePO findByUser_UserIdAndCommentId(Long userId, Long commentId);

    boolean existsByUser_UserIdAndCommentId(Long userId, Long commentId);

    List<CommunityCommentLikePO> findByUser_UserIdAndCommentIdIn(Long userId, List<Long> ids);
}
